
// 自动生成模板PointsCoupons
package coupons
import (
	"time"
)

// pointsCoupons表 结构体  PointsCoupons
type PointsCoupons struct {
    Id  *int `json:"id" form:"id" gorm:"primarykey;column:id;comment:;size:20;"`  //id字段 
    CreatedAt  *time.Time `json:"createdAt" form:"createdAt" gorm:"column:created_at;comment:;"`  //createdAt字段 
    UpdatedAt  *time.Time `json:"updatedAt" form:"updatedAt" gorm:"column:updated_at;comment:;"`  //updatedAt字段 
    DeletedAt  *time.Time `json:"deletedAt" form:"deletedAt" gorm:"column:deleted_at;comment:;"`  //deletedAt字段 
    CouponName  *string `json:"couponName" form:"couponName" gorm:"column:coupon_name;comment:优惠卷名称;size:50;"`  //优惠卷名称 
    CouponIntroduce  *string `json:"couponIntroduce" form:"couponIntroduce" gorm:"column:coupon_introduce;comment:优惠卷详情;size:100;"`  //优惠卷详情 
    CouponExpiration  *int `json:"couponExpiration" form:"couponExpiration" gorm:"column:coupon_expiration;comment:过期天数;size:10;"`  //过期天数 
    PointsRequired  *int `json:"pointsRequired" form:"pointsRequired" gorm:"column:points_required;comment:兑换积分;size:19;"`  //兑换积分 
    CouponNumber  *int `json:"couponNumber" form:"couponNumber" gorm:"column:coupon_number;comment:优惠卷数量;size:19;"`  //优惠卷数量 
}


// TableName pointsCoupons表 PointsCoupons自定义表名 points_coupons
func (PointsCoupons) TableName() string {
    return "points_coupons"
}





